<?php /* Smarty version 2.6.26, created on 2013-10-25 22:15:42
         compiled from ./front/category2.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/front/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/front/left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript" src="../js/jquery.js">
</script>

<!-- <style>

dl{clear:left;}
dt,dd{float:left;}

</style> -->


<script type="text/javascript">
$().ready(function() {
	var $productForm = $("#productForm");
	var $filter = $("#filter dl");
	alert($filter);
	var $attribute = $("#filter a.attribute");

	$attribute.click(function() {
		//alert("xx");return false;
		var $this = $(this);
		if ($this.hasClass("current")) {
			$this.closest("dl").find("input").prop("disabled", true);
		} else {
			$this.closest("dl").find("input").prop("disabled", false).val($this.text());
		}
		$productForm.submit();
		return false;
	});
});
</script>

	<div id="pageRight" class="fr">
	    <div class="ur_here blank">
			当前位置: 
			<a href="#">首页</a><code>&gt;</code>
			<a href="category.php?id=1">手机类型</a>
		</div>
	<form id="productForm" action="goods.php?act=5">
		<div class="mod1 blank" id="filter">
		<h1 class="mod1tit">商品筛选</h1>
			<div class="mod1con">
				<?php $_from = $this->_tpl_vars['cat_attrs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['attrs']):
?>
				<ul>
				<div class="screeBox">
					<input type="hidden" name="attribute_<?php echo $this->_tpl_vars['attrs']['attr_id']; ?>
" disabled="disabled" />
					<strong><?php echo $this->_tpl_vars['attrs']['attr_name']; ?>
：</strong>
					<p>全部</p>
					<?php $_from = $this->_tpl_vars['attrs']['attr_values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['attr_value']):
?>
					<a href="javascript:;" class="attribute"><?php echo $this->_tpl_vars['attr_value']; ?>
</a>&nbsp;
					<?php endforeach; endif; unset($_from); ?>
				</div>
				<?php endforeach; endif; unset($_from); ?>
				</ul>
			</div>
		
			<!-- <div class="mod1con">
				<?php $_from = $this->_tpl_vars['cat_attrs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['attrs']):
?>
				<dl>
					<div class="screeBox">
						<dt>
							<input type="hidden" name="attribute_<?php echo $this->_tpl_vars['attrs']['attr_id']; ?>
" disabled="disabled" />
							<strong><?php echo $this->_tpl_vars['attrs']['attr_name']; ?>
：</strong>
							<p>全部</p>
						</dt>
						<?php $_from = $this->_tpl_vars['attrs']['attr_values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['attr_value']):
?>
						<dd>
			 	  			<a href="javascript:;" onclick="goodsSearch(this, 'cat_id=<?php echo $this->_tpl_vars['attrs']['cat_id']; ?>
')"><?php echo $this->_tpl_vars['attr_value']; ?>
</a>&nbsp;
		 	  			</dd>
						<?php endforeach; endif; unset($_from); ?>
					</div>
					
					<div class="screeBox">
						<dt>
							<input type="hidden" name="attribute_<?php echo $this->_tpl_vars['attrs']['attr_id']; ?>
" disabled="disabled" />
							<strong><?php echo $this->_tpl_vars['attrs']['attr_name']; ?>
：</strong>
							<p>全部</p>
						</dt>
						<?php $_from = $this->_tpl_vars['attrs']['attr_values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['attr_value']):
?>
						<dd>
	  							<a href="javascript:;" class="attribute"><?php echo $this->_tpl_vars['attr_value']; ?>
</a>&nbsp;
	  						</dd>
						<?php endforeach; endif; unset($_from); ?>
					</div>
					
				</dl>
				<?php endforeach; endif; unset($_from); ?>
			</div> -->
		</div>
	
		<!-- <script type="text/javascript">divheight("filter");</script>  -->
	
		<div class="goodsTitle clearfix blank">
			<form method="GET" class="sort fr" name="listform" >
			 	排序：
				<a href="#"><img src="../templates/front/images/goods_id_DESC.gif" alt="按上架时间排序"></a>
				<a href="#"><img src="../templates/front/images/shop_price_default.gif" alt="按价格排序"></a>
				<a href="#"><img src="../templates/front/images/last_update_default.gif" alt="按更新时间排序"></a>
			</form>
		</div>
	</form>
		<div class="clearfix modContent">
			<div class="clearfix grid">
				<?php $_from = $this->_tpl_vars['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['good']):
?>
				<div class="goodsbox">
					<div class="imgbox"><a href="goods.php?goods_id=<?php echo $this->_tpl_vars['good']['goods_id']; ?>
"><img src="../<?php echo $this->_tpl_vars['good']['goods_thumb']; ?>
" /></a>
					</div>
					<a href="goods.php?goods_id=<?php echo $this->_tpl_vars['good']['goods_id']; ?>
"><?php echo $this->_tpl_vars['good']['goods_name']; ?>
</a><br />
					<b class="f1">￥<?php echo $this->_tpl_vars['good']['shop_price']; ?>
</b> 
				</div>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		</div>
	</div>
	
</div>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/front/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>